package net;

import comunity.UserData;

import message.Logout;
import message.Packet;

public class LogoutSender extends Sender {

	LogoutSender(Packet packet) {
		super(packet);
	}

	@Override
	void handleResponse(int response) {
		//Cancellazione UserData
	}

	public static void sendLogout(String username){
		int inputPort = OlivawPortsClient.getInputPort();
		Logout logout = new Logout(username, inputPort, -1, -1);
		
		new Thread(new LogoutSender(logout)).start();
	}
}
